﻿@using CoralNode.Core.Entity.Enums
@using CoralNode.MvcClient.Helper
@using Coralcode.Adapter.Quiz.Entity.Domain
@using Coralcode.Adapter.Quiz.Entity.Enums
@using Coralcode.Utils.Basic
@using Newtonsoft.Json
@model Coralcode.Adapter.Quiz.Entity.Domain.AnswerDomain
<!--left-->
@Html.IncludePage("CoralAdmin/Node", "_Left")
<div id="pbody">
    <div class="extra">
        <div class="pbody_top">
            <span class="ico ico_setting_system"></span><span class="t t_c">答案管理&nbsp;&nbsp;/&nbsp;&nbsp;<b
                class=" t_small f_no">修改答案</b></span>
        </div>
        <div id="main">
            <div class="funsearch p_1 pl_2 pr_2 extra_normal border-bottom1">
                <a href="/m/quiz/listanswer?nodeId=@Model.NodeId" class="ico ico_back btn f_r mt_0-5"></a>
            </div>
            <form id="spform" action="/m/quiz/editAnswer/@Model.Id" method="post" enctype="multipart/form-data">
                @if (@ViewBag.Msg != null)
                {
                    <div class="error_msg">
                        @ViewBag.Msg.Msg
                    </div>
                }
                <div class="pt_1 slideswitch pl_2 pr_2" data-js="slideswitch">
                    <div class="switch_tab">
                        <span class="btn"><i class="ico ico_slideswitch_show"></i></span>主要信息
                    </div>
                    <div class="table_form form_main switch_cnt">
                        <div class="pl_2">
                            @Html.AntiForgeryToken()
                            @Html.ValidationSummary(true)
                            <table>
                                <tbody>
                                    <tr>
                                        <th width="100">标题<span class="rq">*</span></th>
                                        <td>
                                            @Html.TextBoxFor(m => m.Title, new { @class = "text w_37 required" })
                                            @Html.HiddenFor(n => n.NodeId)
                                            @Html.HiddenFor(n=>n.Id)
                                        </td>
                                    </tr>
                                    <tr>
                                        <th>最小分值</th>
                                        <td>
                                            @Html.TextBoxFor(m => m.MinWeight, new { @class = "text w_5 number" })
                                        </td>
                                    </tr>
                                    <tr>
                                        <th>最大分值</th>
                                        <td>
                                            @Html.TextBoxFor(m => m.MaxWeight, new { @class = "text w_5 number" })
                                        </td>
                                    </tr>
                                    <tr>
                                        <th>答案</th>
                                        <td>
                                            <textarea name="Body" id="Body">@Model.Body</textarea>
                                            <script type="text/javascript">
                                                var edit = UE.getEditor('Body');
                                            </script>
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
                <div class="submitbox p_2 extra_normal">
                    <input type="hidden" name="Options" id="DataSet" />
                    <input type="submit" class="btn_1" value="提    交" />
                </div>
            </form>
        </div>
    </div>
</div>
